<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Geo3DML-CPP: include/geo3dml/Context.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Geo3DML-CPP
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.12.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_acc7f90eaa859a07dba55a8b62805b11.html">geo3dml</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="headertitle"><div class="title">Context.h</div></div>
</div><!--header-->
<div class="contents">
<a href="_context_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span> </div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="preprocessor">#include &lt;mutex&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacegeo3dml.html">geo3dml</a> {</div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span>    <span class="keyword">class </span>Object;</div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span>    <span class="keyword">class </span>ObjectFactory;</div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span> </div>
<div class="foldopen" id="foldopen00015" data-start="{" data-end="};">
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_context.html">   15</a></span>    <span class="keyword">class </span><a class="code hl_class" href="classgeo3dml_1_1_context.html">Context</a> {</div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_context.html#a93825fdbf7dabb5a0a66b50b4d0d393a">   19</a></span>        <a class="code hl_function" href="classgeo3dml_1_1_context.html#a93825fdbf7dabb5a0a66b50b4d0d393a">Context</a>(<a class="code hl_class" href="classgeo3dml_1_1_object_factory.html">ObjectFactory</a>* g3dFactory);</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_context.html#a585924d2868081ea2134f110173e1369">   20</a></span>        <span class="keyword">virtual</span> <a class="code hl_function" href="classgeo3dml_1_1_context.html#a585924d2868081ea2134f110173e1369">~Context</a>();</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_context.html#a385b24174ea0498af16e00979b551d7a">   24</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_object.html">Object</a>* <a class="code hl_function" href="classgeo3dml_1_1_context.html#a385b24174ea0498af16e00979b551d7a">GetGeo3DMLObject</a>();</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_context.html#a135cd3fa12a5573b6de5b562db94b871">   30</a></span>        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="classgeo3dml_1_1_context.html#a135cd3fa12a5573b6de5b562db94b871">LoadMoreData</a>();</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_context.html#a528452d445612e510d6ed4c282055e74">   33</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classgeo3dml_1_1_context.html#a528452d445612e510d6ed4c282055e74">SetDone</a>(<span class="keywordtype">bool</span> isDone);</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_context.html#ad7d80f6350fb8bb380cd4a2006a4a5e5">   36</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classgeo3dml_1_1_context.html#ad7d80f6350fb8bb380cd4a2006a4a5e5">IsDone</a>();</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span> </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_context.html#a1f9b3c38a0c684114156b6a4797df7ca">   41</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classgeo3dml_1_1_context.html#a1f9b3c38a0c684114156b6a4797df7ca">IsOK</a>();</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_context.html#af15c4b99a4fbd96d2dd16c36499ca13b">   42</a></span>        std::string <a class="code hl_function" href="classgeo3dml_1_1_context.html#af15c4b99a4fbd96d2dd16c36499ca13b">Error</a>();</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span> </div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span>    <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_context.html#a0720b5f434e636e22a3ed34f847eec57">   46</a></span>        <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="classgeo3dml_1_1_object.html">Object</a>;</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_context.html#a7001b819de8fef2e503b772214ebae8c">   49</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classgeo3dml_1_1_context.html#a7001b819de8fef2e503b772214ebae8c">BindGeo3DMLObject</a>(<a class="code hl_class" href="classgeo3dml_1_1_object.html">Object</a>* g3dObject);</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span>    <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_context.html#ae9ffe8ed4d0f12b6c1df303995fc2bbe">   54</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_object_factory.html">ObjectFactory</a>* <a class="code hl_function" href="classgeo3dml_1_1_context.html#ae9ffe8ed4d0f12b6c1df303995fc2bbe">GetObjectFactory</a>();</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_context.html#afa9e0370ff297b6ee76cdfa09ba9c3cb">   55</a></span>        <span class="keywordtype">void</span> <a class="code hl_function" href="classgeo3dml_1_1_context.html#afa9e0370ff297b6ee76cdfa09ba9c3cb">SetStatus</a>(<span class="keywordtype">bool</span> isOK, <span class="keyword">const</span> std::string&amp; message = <span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span> </div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_context.html#a06e4a130cebe9912fe15c05ad0b1d3c6">   57</a></span>        <span class="keyword">typedef</span> std::lock_guard&lt;std::recursive_mutex&gt; <a class="code hl_typedef" href="classgeo3dml_1_1_context.html#a06e4a130cebe9912fe15c05ad0b1d3c6">g3dcpp_context_lock_guard</a>;</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_context.html#a129725c92f9b395148bfcb80a1f903d1">   58</a></span>        std::recursive_mutex <a class="code hl_variable" href="classgeo3dml_1_1_context.html#a129725c92f9b395148bfcb80a1f903d1">mtx_</a>;</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span> </div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span>    <span class="keyword">private</span>:</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_context.html#a04a17435a9b02117c9b0647cf5cf1429">   61</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_object.html">Object</a>* <a class="code hl_variable" href="classgeo3dml_1_1_context.html#a04a17435a9b02117c9b0647cf5cf1429">g3dObject_</a>;</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_context.html#ad06081ed1ebe69ebfa1b4cc074cf2312">   62</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_object_factory.html">ObjectFactory</a>* <a class="code hl_variable" href="classgeo3dml_1_1_context.html#ad06081ed1ebe69ebfa1b4cc074cf2312">g3dFactory_</a>;</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_context.html#a711a55358af9fcfaf1b5c3175469a577">   63</a></span>        <span class="keywordtype">bool</span> <a class="code hl_variable" href="classgeo3dml_1_1_context.html#a711a55358af9fcfaf1b5c3175469a577">isDone_</a>;</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_context.html#a4723fb507d402279be08ecaea69cd090">   64</a></span>        <span class="keywordtype">bool</span> <a class="code hl_variable" href="classgeo3dml_1_1_context.html#a4723fb507d402279be08ecaea69cd090">isOK_</a>;</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_context.html#abdeb2ba802fde0541e54e637a142c7d4">   65</a></span>        std::string <a class="code hl_variable" href="classgeo3dml_1_1_context.html#abdeb2ba802fde0541e54e637a142c7d4">errorMessage_</a>;</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>    };</div>
</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span>}</div>
<div class="ttc" id="aclassgeo3dml_1_1_context_html"><div class="ttname"><a href="classgeo3dml_1_1_context.html">geo3dml::Context</a></div><div class="ttdef"><b>Definition</b> Context.h:15</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_context_html_a04a17435a9b02117c9b0647cf5cf1429"><div class="ttname"><a href="classgeo3dml_1_1_context.html#a04a17435a9b02117c9b0647cf5cf1429">geo3dml::Context::g3dObject_</a></div><div class="ttdeci">Object * g3dObject_</div><div class="ttdef"><b>Definition</b> Context.h:61</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_context_html_a06e4a130cebe9912fe15c05ad0b1d3c6"><div class="ttname"><a href="classgeo3dml_1_1_context.html#a06e4a130cebe9912fe15c05ad0b1d3c6">geo3dml::Context::g3dcpp_context_lock_guard</a></div><div class="ttdeci">std::lock_guard&lt; std::recursive_mutex &gt; g3dcpp_context_lock_guard</div><div class="ttdef"><b>Definition</b> Context.h:57</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_context_html_a129725c92f9b395148bfcb80a1f903d1"><div class="ttname"><a href="classgeo3dml_1_1_context.html#a129725c92f9b395148bfcb80a1f903d1">geo3dml::Context::mtx_</a></div><div class="ttdeci">std::recursive_mutex mtx_</div><div class="ttdef"><b>Definition</b> Context.h:58</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_context_html_a135cd3fa12a5573b6de5b562db94b871"><div class="ttname"><a href="classgeo3dml_1_1_context.html#a135cd3fa12a5573b6de5b562db94b871">geo3dml::Context::LoadMoreData</a></div><div class="ttdeci">virtual void LoadMoreData()</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_context_html_a1f9b3c38a0c684114156b6a4797df7ca"><div class="ttname"><a href="classgeo3dml_1_1_context.html#a1f9b3c38a0c684114156b6a4797df7ca">geo3dml::Context::IsOK</a></div><div class="ttdeci">bool IsOK()</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_context_html_a385b24174ea0498af16e00979b551d7a"><div class="ttname"><a href="classgeo3dml_1_1_context.html#a385b24174ea0498af16e00979b551d7a">geo3dml::Context::GetGeo3DMLObject</a></div><div class="ttdeci">Object * GetGeo3DMLObject()</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_context_html_a4723fb507d402279be08ecaea69cd090"><div class="ttname"><a href="classgeo3dml_1_1_context.html#a4723fb507d402279be08ecaea69cd090">geo3dml::Context::isOK_</a></div><div class="ttdeci">bool isOK_</div><div class="ttdef"><b>Definition</b> Context.h:64</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_context_html_a528452d445612e510d6ed4c282055e74"><div class="ttname"><a href="classgeo3dml_1_1_context.html#a528452d445612e510d6ed4c282055e74">geo3dml::Context::SetDone</a></div><div class="ttdeci">void SetDone(bool isDone)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_context_html_a585924d2868081ea2134f110173e1369"><div class="ttname"><a href="classgeo3dml_1_1_context.html#a585924d2868081ea2134f110173e1369">geo3dml::Context::~Context</a></div><div class="ttdeci">virtual ~Context()</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_context_html_a7001b819de8fef2e503b772214ebae8c"><div class="ttname"><a href="classgeo3dml_1_1_context.html#a7001b819de8fef2e503b772214ebae8c">geo3dml::Context::BindGeo3DMLObject</a></div><div class="ttdeci">void BindGeo3DMLObject(Object *g3dObject)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_context_html_a711a55358af9fcfaf1b5c3175469a577"><div class="ttname"><a href="classgeo3dml_1_1_context.html#a711a55358af9fcfaf1b5c3175469a577">geo3dml::Context::isDone_</a></div><div class="ttdeci">bool isDone_</div><div class="ttdef"><b>Definition</b> Context.h:63</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_context_html_a93825fdbf7dabb5a0a66b50b4d0d393a"><div class="ttname"><a href="classgeo3dml_1_1_context.html#a93825fdbf7dabb5a0a66b50b4d0d393a">geo3dml::Context::Context</a></div><div class="ttdeci">Context(ObjectFactory *g3dFactory)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_context_html_abdeb2ba802fde0541e54e637a142c7d4"><div class="ttname"><a href="classgeo3dml_1_1_context.html#abdeb2ba802fde0541e54e637a142c7d4">geo3dml::Context::errorMessage_</a></div><div class="ttdeci">std::string errorMessage_</div><div class="ttdef"><b>Definition</b> Context.h:65</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_context_html_ad06081ed1ebe69ebfa1b4cc074cf2312"><div class="ttname"><a href="classgeo3dml_1_1_context.html#ad06081ed1ebe69ebfa1b4cc074cf2312">geo3dml::Context::g3dFactory_</a></div><div class="ttdeci">ObjectFactory * g3dFactory_</div><div class="ttdef"><b>Definition</b> Context.h:62</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_context_html_ad7d80f6350fb8bb380cd4a2006a4a5e5"><div class="ttname"><a href="classgeo3dml_1_1_context.html#ad7d80f6350fb8bb380cd4a2006a4a5e5">geo3dml::Context::IsDone</a></div><div class="ttdeci">bool IsDone()</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_context_html_ae9ffe8ed4d0f12b6c1df303995fc2bbe"><div class="ttname"><a href="classgeo3dml_1_1_context.html#ae9ffe8ed4d0f12b6c1df303995fc2bbe">geo3dml::Context::GetObjectFactory</a></div><div class="ttdeci">ObjectFactory * GetObjectFactory()</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_context_html_af15c4b99a4fbd96d2dd16c36499ca13b"><div class="ttname"><a href="classgeo3dml_1_1_context.html#af15c4b99a4fbd96d2dd16c36499ca13b">geo3dml::Context::Error</a></div><div class="ttdeci">std::string Error()</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_context_html_afa9e0370ff297b6ee76cdfa09ba9c3cb"><div class="ttname"><a href="classgeo3dml_1_1_context.html#afa9e0370ff297b6ee76cdfa09ba9c3cb">geo3dml::Context::SetStatus</a></div><div class="ttdeci">void SetStatus(bool isOK, const std::string &amp;message=&quot;&quot;)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_object_factory_html"><div class="ttname"><a href="classgeo3dml_1_1_object_factory.html">geo3dml::ObjectFactory</a></div><div class="ttdoc">Factory for Geo3DML objects. It is not thread safe.</div><div class="ttdef"><b>Definition</b> ObjectFactory.h:30</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_object_html"><div class="ttname"><a href="classgeo3dml_1_1_object.html">geo3dml::Object</a></div><div class="ttdef"><b>Definition</b> Geo3DML.h:7</div></div>
<div class="ttc" id="anamespacegeo3dml_html"><div class="ttname"><a href="namespacegeo3dml.html">geo3dml</a></div><div class="ttdef"><b>Definition</b> AbstractMetadata.h:6</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
